<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link rel="stylesheet" href="/css/bootstrap-1.css">
	<link rel="stylesheet" href="/css/sheet-45cc4b4a_1.css">
	<link rel="stylesheet" href="/css/sheet-45cc4b4a_2.css">
	<link rel="stylesheet" href="/css/sheet-45cc4b4a_3.css">
	<link rel="stylesheet" href="/css/sheet-339b71e6_1.css">
	<link rel="stylesheet" href="/css/sheet-339b71e6_2.css">
	<link rel="stylesheet" href="/css/sheet-339b71e6_3.css">
	<link rel="stylesheet" href="/css/sheet-6ec1eb99.css">
	<link rel="stylesheet" href="/css/sheet-3ffafd32.css">
	<link rel="stylesheet" href="/css/openmodel_w-e-text_1.css">
	<link rel="stylesheet" href="/css/openmodel_w-e-text_2.css">
	<link rel="stylesheet" href="/css/openmodel_w-e-text_3.css">
	<link rel="stylesheet" href="/css/openmodel_w-e-text_4.css">
	<link rel="stylesheet" href="/css/openmodel_w-e-text_5.css">
	<link rel="stylesheet" href="/css/openmodel_4ab4e72a.css">
	
</head>
<style>
	input[type="datetime-local"] {
  width: 150px;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 12px;
  transition: border-color 0.3s;
}

input[type="datetime-local"]:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

</style>

<body style="text-align: center;">
	<br>
	
	<nav class="navigation-container">
		<ul class="nav-list ">
			<li><a href="./admin?type=staff">员工管理</a></li>
			<li><a href="./admin?type=device">设备管理</a></li>
			<li><a href="./admin?type=user">用户管理</a></li>
			<!-- <li><a href="./admin?type=shop">店铺管理</a></li> -->
			<li><a href="./admin?type=comment">汇总信息</a></li>
			<li><a href="./admin?type=commentDetail">评价详细</a></li>
			<li><a href="./admin?type=bill">账单管理</a></li>
			<li><a href="./logout">退出登录</a></li>
		</ul>
		<br>
		<div class="current-info">
			<span>当前时间：<%= formatDate(new Date()) %></span>
			<span>当前任务数量：<%= tasktotal%></span>
			<span>当前用户：<%= user%></span>
			<!-- <span>当前操作设备：106</span> -->
		</div>
	</nav>
	<%if(type=='staff'){%>
		<!-- 脚本设置页面 -->
		<div style=" margin-top:10px;margin-bottom:0px;text-align: left; width:450px;margin-left: 20px; width: 1040px	">
			<form action="addstaff" method="POST" >
				
					<div style="margin-top: 10px;float:left;">
						<input id="count" type="text" name="type" value="setting" hidden>
						<div style="margin-top: 10px;float:left; width: 200px;">用户名：<%= user%> </div>						
						<div style="margin-top: 10px;float:left; width: 300px;">
								<label style="margin-top: 00px;float:left;">账号：<input type="text" name="user" value="" style="margin: 0px; width: 200px;">
						</div>
						<div style="margin-top: 10px;float:left; width: 300px;">
							<label style="margin-top: 00px;float:left;">密码<input type="text" name="password" value="" style="margin: 0px; width: 200px;">
						</div>
						<div style="margin-top: 8px;float:left; width: 100px;">
							<label style="margin-right: 00px;float: right;"><button type="submit"  name="submit"  value="all">添加</button></label>
						</div>
						<!-- <a href=./downloadshopMessage ><button data-v-6ec1eb99="" type="button" class="el-button el-button--primary el-button--small" style="margin-left:50px; "><span>导出Excel</span></button></a> -->
					</div>
					
			
			</form>
			
			
		</div>
		<div style=" margin-top:10px;margin-bottom:0px;text-align: left; width:450px;margin-left: 20px; width: 1040px	">
			<form action="bandstaff" method="POST" >
				
					<div style="margin-top: 10px;float:left;">
						<input id="count" type="text" name="type" value="setting" hidden>
						<div style="margin-top: 10px;float:left; width: 200px;"> </div>						
						<div style="margin-top: 10px;float:left; width: 300px;">
								<label style="margin-top: 00px;float:left;">员工账号：<input type="text" name="userName" value="" style="margin: 0px; width: 200px;">
						</div>
						<div style="margin-top: 10px;float:left; width: 300px;">
							<label style="margin-top: 00px;float:left;">用户ID<input type="text" name="user_id" value="" style="margin: 0px; width: 200px;">
						</div>
						<div style="margin-top: 8px;float:left; width: 100px;">
							<label style="margin-right: 00px;float: right;"><button type="submit"  name="submit"  value="all">绑定</button></label>
						</div>
						<!-- <a href=./downloadshopMessage ><button data-v-6ec1eb99="" type="button" class="el-button el-button--primary el-button--small" style="margin-left:50px; "><span>导出Excel</span></button></a> -->
					</div>
					
			
			</form>
			
			
		</div>
		<div style="margin-left:20px; margin-top: 20px; text-align: left;  width: 1040px">
			<div data-v-339b71e6="" class="el-card is-always-shadow">
				<div class="el-card__body">
					<div data-v-339b71e6="" class="bg-color-w margin-t20">
						<div data-v-339b71e6="" class="log-item bg-color-c flex t-color-4 f13-size">
							<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 15%;">员工账号</div>
							<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 15%;">员工密码</div>
							<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 15%;">用户绑定</div>
							<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 15%;">设备总数</div>
							<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 20%;">上传</div>
							<div data-v-339b71e6="" class="flex f-j-c flex-1" style="width: 20%;">操作</div>
						</div>
						<% if(data) data.forEach((item,index)=>{ %>
						<div data-v-339b71e6="" class="log-item flex f-a-c t-color-4 f13-size">
							
							<div data-v-339b71e6="" class="flex f-j-c f-s-0 f-c f-a-c" style="width: 15%;">
								<p data-v-339b71e6=""><%= item.data.user%></p>
								<p data-v-339b71e6="" class="margin-t6"></p>
							</div>
							
							<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 15%;"><%= item.data.password%></div>
							<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 15%;"><%= item.data.user_id.length%></div>
							<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 15%;"><%= item.count%></div>
							<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 20%;">
								<input type="file" id="<%=item._id%>" name="excelFile" style="display:none;" accept=".xlsx">
								<button data-v-6ec1eb99=""  class="el-button el-button--primary el-button--small w-e-up-btn" style="margin-left:20px; " "><!----><!----><span>上传设备</span></button>
							
							</div>
						
							<div data-v-339b71e6="" class="flex f-j-c flex-1 ">
								<a href=./del?type=staffdevice&id=<%= item._id%> >
									<button data-v-339b71e6="" type="button" class="el-button el-button--danger el-button--small margin-r20" ><!----><!---->
										<span>清空设备</span>
									</button>
								</a>
								<a href=./del?type=staff&id=<%= item._id%> >
									<button data-v-339b71e6="" type="button" class="el-button el-button--danger el-button--small" ><!----><!---->
										<span>删除</span>
									</button>
								</a>
							</div>
						</div>
						<% })%>	
					
					</div> <!---->
					<div style="text-align: right; margin-top: 20px;">
			
						&nbsp;&nbsp;&nbsp;&nbsp;总数 <%= total%>  条 &nbsp;&nbsp;当前第 <%= currentPage%> 页 &nbsp;&nbsp;共 <%= totalPage%> 页 &nbsp;&nbsp;<a href=./admin.php?type=staff&page=1 target="_self" class="a_button">第一页</a>
						&nbsp;&nbsp;<a href=./admin.php?type=staff&page=<%= currentPage-1%> target="_self" class="a_button">上一页</a>
						&nbsp;&nbsp;<a href=./admin.php?type=staff&page=<%= currentPage+1%> target="_self" class="a_button">下一页</a>
						&nbsp;&nbsp;<a href=./admin.php?type=staff&page=<%= totalPage%>  target="_self" class="a_button">最后页</a>
					</div>
				</div>
			</div>
		</div>
		
		
	<%} %>
	<%if(type=='device'){%>
		<!-- 脚本设置页面 -->
	
		<div style="margin-left:20px; margin-top: 20px; text-align: left;  width: 1040px">
			<div data-v-339b71e6="" class="el-card is-always-shadow">
				<div class="el-card__body">
					<div data-v-339b71e6="" class="bg-color-w margin-t20">
						<div data-v-339b71e6="" class="log-item bg-color-c flex t-color-4 f13-size">
							<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 25%;">设备名称</div>
							<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 25%;">绑定员工</div>
							<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 25%;">时间</div>
							<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 25%;">操作</div>
						
						</div>
						<% if(data) data.forEach((item,index)=>{ %>
						<div data-v-339b71e6="" class="log-item flex f-a-c t-color-4 f13-size">
							<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 25%;"><%= item.did%></div>
							<%if(item.staff.length>0){%>
							<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 25%;"><%= item.staff[0].user%></div>
							<%}else{%>
								<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 25%;"></div>
							<%}%>
							<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 25%;"><%= formatDate(item.last_time) %></div>
							<div data-v-339b71e6="" class="flex f-j-c flex-1 ">
								<a href=./del?type=staffdeviceOne&id=<%= item._id%> >
									<button data-v-339b71e6="" type="button" class="el-button el-button--danger el-button--small" ><!----><!---->
										<span>删除</span>
									</button>
								</a>
							</div>
						</div>
						<% })%>	
					
					</div> <!---->
					<div style="text-align: right; margin-top: 20px;">
			
						&nbsp;&nbsp;&nbsp;&nbsp;总数 <%= total%>  条 &nbsp;&nbsp;当前第 <%= currentPage%> 页 &nbsp;&nbsp;共 <%= totalPage%> 页 &nbsp;&nbsp;<a href=./admin.php?type=device&page=1 target="_self" class="a_button">第一页</a>
						&nbsp;&nbsp;<a href=./admin.php?type=device&page=<%= currentPage-1%> target="_self" class="a_button">上一页</a>
						&nbsp;&nbsp;<a href=./admin.php?type=device&page=<%= currentPage+1%> target="_self" class="a_button">下一页</a>
						&nbsp;&nbsp;<a href=./admin.php?type=device&page=<%= totalPage%>  target="_self" class="a_button">最后页</a>
					</div>
				</div>
			</div>
		</div>
		
		
	<%} %>	
	
	<%if(type=='user'){%>
		<!-- 脚本设置页面 -->
	
		<div style="margin-left:20px; margin-top: 20px; text-align: left;  width: 1040px">
			<div data-v-339b71e6="" class="el-card is-always-shadow">
				<div class="el-card__body">
					<div data-v-339b71e6="" class="bg-color-w margin-t20">
						<div data-v-339b71e6="" class="log-item bg-color-c flex t-color-4 f13-size">
							<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 20%;">ID</div>
							<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 15%;">用户账号</div>
							<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 10%;">店铺数量</div>
							<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 10%;">本金</div>
							<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 15%;">注册时间</div>
							<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 10%;">状态</div>
							<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 20%;">操作</div>
						</div>
						<% if(data) data.forEach((item,index)=>{ %>
						<div data-v-339b71e6="" class="log-item flex f-a-c t-color-4 f13-size">

							<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 20%;"><%= item._id%></div>
							<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 15%;"><%= item.user%></div>
							<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 10%;"><%= item.shopNameCount%></div>
							<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 10%;"><a href=./adminUser?type=shopReport&user=<%= item.user%> target="_blank">查看报表</a></div>
							<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 15%;"><%=formatDate(item.last_time)%></div>
							<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 10%;"><%=getshopStatus(item.state)%></div>
							<div data-v-6ec1eb99="" class="flex f-j-c f-s-0 " style="width: 20%;">
								<% if(item.state == 0){ %>
									<a href=./userState?type=user&state=1&id=<%= item._id%> >
									<button data-v-6ec1eb99=""  class="el-button el-button--primary el-button--small margin-r20" ><!----><!---->
										<span>通过</span>
									</button>
									</a>
								
									<a href=./userState?type=user&state=2&id=<%= item._id%> >
										<button data-v-339b71e6="" type="button" class="el-button el-button--danger el-button--small margin-r20" ><!----><!---->
											<span>拒绝</span>
										</button>
									</a>
								<%}else if(item.state == 1){ %>
									<a href=./userState?type=user&state=3&id=<%= item._id%> >
										<button data-v-339b71e6="" type="button" class="el-button el-button--danger el-button--small margin-r20" ><!----><!---->
											<span>禁止</span>
										</button>
									</a>
								<%}else if(item.state == 2){ %>
									<a href=./userState?type=user&state=1&id=<%= item._id%> >
										<button data-v-6ec1eb99=""  class="el-button el-button--primary el-button--small margin-r20" ><!----><!---->
											<span>通过</span>
										</button>
										</a>
								<%}else if(item.state == 3){ %>
									<a href=./userState?type=user&state=1&id=<%= item._id%> >
										<button data-v-6ec1eb99=""  class="el-button el-button--primary el-button--small  margin-r20" ><!----><!---->
											<span>恢复</span>
										</button>
									</a>
								<%}else{ %>
									<a href=./userState?type=user&state=1&id=<%= item._id%> >
										<button data-v-6ec1eb99=""  class="el-button el-button--primary el-button--small margin-r20" ><!----><!---->
											<span>通过</span>
										</button>
										</a>
								<% }%>	
							</div>
						
						</div>
						<% })%>	
					
					</div> <!---->
					<div style="text-align: right; margin-top: 20px;">
			
						&nbsp;&nbsp;&nbsp;&nbsp;总数 <%= total%>  条 &nbsp;&nbsp;当前第 <%= currentPage%> 页 &nbsp;&nbsp;共 <%= totalPage%> 页 &nbsp;&nbsp;<a href=./admin.php?type=staff&page=1 target="_self" class="a_button">第一页</a>
						&nbsp;&nbsp;<a href=./admin.php?type=staff&page=<%= currentPage-1%> target="_self" class="a_button">上一页</a>
						&nbsp;&nbsp;<a href=./admin.php?type=staff&page=<%= currentPage+1%> target="_self" class="a_button">下一页</a>
						&nbsp;&nbsp;<a href=./admin.php?type=staff&page=<%= totalPage%>  target="_self" class="a_button">最后页</a>
					</div>
				</div>
			</div>
		</div>
		
		
	<%} %>

	<%if(type=='shop'){%>
		<!-- 店铺管理 -->
	
		<div style="margin-left:20px; margin-top: 20px; text-align: left;  width: 1040px">
			<div data-v-339b71e6="" class="el-card is-always-shadow">
				<div class="el-card__body">
					<div data-v-339b71e6="" class="bg-color-w margin-t20">
						<div data-v-339b71e6="" class="log-item bg-color-c flex t-color-4 f13-size">
							<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 20%;">掌柜/店铺名</div>
							<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 20%;">用户</div>
							<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 20%;">绑定时间</div>
							<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 20%;">审核状态</div>
							<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 20%;">操作</div>
						</div>
						<% if(data) data.forEach((item,index)=>{ %>
						<div data-v-339b71e6="" class="log-item flex f-a-c t-color-4 f13-size">
							<div data-v-339b71e6="" class="flex f-j-c f-s-0 f-c f-a-c" style="width: 20%;">
								<p data-v-339b71e6=""><%= item.AliName%></p>
								<p data-v-339b71e6="" class="margin-t6"><%= item.shopName%></p>
							</div>
							<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 20%;"><%= item.item.user%></div>
							<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 20%;"><%= formatDate(item.last_time)%></div>
			
							
						
							<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 20%;"><span data-v-339b71e6=""
									class="cursor margin-r4 t-color-c"><%= getshopStatus(item.state)%></span></div>
							<div data-v-6ec1eb99="" class="flex f-j-c f-s-0 " style="width: 20%;">
								<% if(item.state == 0){ %>
									<a href=./shopState?type=shopName&state=1&id=<%= item._id%> >
									<button data-v-6ec1eb99=""  class="el-button el-button--primary el-button--small margin-r20"  "><!----><!---->
										<span>通过</span>
									</button>
									</a>
								
									<a href=./shopState?type=shopName&state=2&id=<%= item._id%> >
										<button data-v-339b71e6="" type="button" class="el-button el-button--danger el-button--small margin-r20" ><!----><!---->
											<span>拒绝</span>
										</button>
									</a>
								<%}else if(item.state == 1){ %>
									<a href=./shopState?type=shopName&state=3&id=<%= item._id%> >
										<button data-v-339b71e6="" type="button" class="el-button el-button--danger el-button--small margin-r20" ><!----><!---->
											<span>禁止</span>
										</button>
									</a>
								<%}else if(item.state == 2){ %>
									<a href=./shopState?type=shopName&state=1&id=<%= item._id%> >
										<button data-v-6ec1eb99=""  class="el-button el-button--primary el-button--small margin-r20" ><!----><!---->
											<span>通过</span>
										</button>
										</a>
								<%}else if(item.state == 3){ %>
									<a href=./shopState?type=shopName&state=1&id=<%= item._id%> >
										<button data-v-6ec1eb99=""  class="el-button el-button--primary el-button--small  margin-r20" ><!----><!---->
											<span>恢复</span>
										</button>
									</a>
						
								<% }%>	
							</div>
						
						</div>
						<% })%>	
					
					</div> <!---->
					<div style="text-align: right; margin-top: 20px;">
			
						&nbsp;&nbsp;&nbsp;&nbsp;总数 <%= total%>  条 &nbsp;&nbsp;当前第 <%= currentPage%> 页 &nbsp;&nbsp;共 <%= totalPage%> 页 &nbsp;&nbsp;<a href=./admin?type=shop&page=1 target="_self" class="a_button">第一页</a>
						&nbsp;&nbsp;<a href=./admin?type=shop&page=<%= currentPage-1%> target="_self" class="a_button">上一页</a>
						&nbsp;&nbsp;<a href=./admin?type=shop&page=<%= currentPage+1%> target="_self" class="a_button">下一页</a>
						&nbsp;&nbsp;<a href=./admin?type=shop&page=<%= totalPage%>  target="_self" class="a_button">最后页</a>
					</div>
				</div>
			</div>
		</div>
		
		
	<%} %>
	<% if(type == "comment"){%>
	<!-- 任务链接管理 -->
		<title>评论 查看管理页面</title>
		<div data-v-4ab4e72a="" class="el-card is-always-shadow margin-t20 " style=" width: 1040px"><!---->
			<div class="el-card__body">
				<div data-v-4ab4e72a="" class="wrap-task">
					<div data-v-4ab4e72a="" class="wrap-task-item margin-t20 task-item-title">
						<div data-v-4ab4e72a="" class="flex padding-10 f-a-c"><button data-v-4ab4e72a="" id="openModal"  type="button"
								class="el-button el-button--primary el-button--small"><!----><!----><span>创建</span></button>
							<button data-v-4ab4e72a="" type="button"
								class="el-button el-button--primary el-button--small"><!----><!----><span>修改</span></button>
							<button data-v-4ab4e72a="" type="button"
								class="el-button el-button--primary el-button--small"><!----><!----><span>删除</span></button>
						</div>
					</div> <br data-v-4ab4e72a="">
				
					<div style="margin-left:20px; margin-top: 20px; text-align: left;  width: 940px">
						<div data-v-339b71e6="" class="el-card is-always-shadow">
							<div class="el-card__body">
								<div data-v-339b71e6="" class="bg-color-w margin-t20">
									<div data-v-339b71e6="" class="log-item bg-color-c flex t-color-4 f13-size">
										<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 30%;">淘宝账号</div>
										<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 30%;">订单数量</div>
										<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 20%;">状态</div>
										<div data-v-339b71e6="" class="flex f-j-c flex-1" style="width: 20%;">操作</div>
									</div>
									<% if(data) data.forEach((item,index)=>{ %>
									<div data-v-339b71e6="" class="log-item flex f-a-c t-color-4 f13-size">
										<div data-v-339b71e6="" class="flex f-j-c f-s-0 f-c f-a-c" style="width: 30%;">
											<p data-v-339b71e6=""><%= item._id%></p>
											<p data-v-339b71e6="" class="margin-t6"></p>
										</div>
										
										<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 30%;"><%= item.count%></div>
										
									
										<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 20%;"><span data-v-339b71e6=""
												class="cursor margin-r4 t-color-c">待评价</span></div>
										<!-- <div data-v-339b71e6="" class="flex f-j-c flex-1"><a href=./del?type=shop&id=<%= item.id%> ><button data-v-339b71e6="" type="button"
												class="el-button el-button--danger el-button--small" ><span>删除</span></button></a></div> -->
									</div>
									<% })%>	
								
								</div> <!---->
								<div style="text-align: right; margin-top: 20px;">
						
									
								</div>
							</div>
						</div>
					</div>
				
				</div>
			</div>
		</div>

	<%}else if(type=="commentDetail"){	%>
		<div style=" margin-top:10px;margin-bottom:0px; width:450px;margin-left: 20px; width: 1040px	">
			<div data-v-6ec1eb99="" class="el-card is-always-shadow" style="overflow: hidden;">
			
				<div class="el-card__body" style="margin-top:10px; ">
					
					<div data-v-6ec1eb99="" class="margin-t20 bg-color-w wrap-table-s "
						style="overflow-x: scroll;">
						<div data-v-6ec1eb99="" style="width: 1040; ">
							<div data-v-6ec1eb99="" class="log-item bg-color-c flex t-color-4 f13-size margin-t20">
								<div data-v-6ec1eb99="" class="flex flex-1 f-s-0">任务编号</div>
								<div data-v-6ec1eb99="" class="flex flex-1 f-s-0">订单号</div>
								<div data-v-6ec1eb99="" class="flex flex-1 f-s-0">淘宝账号</div>
								<div data-v-6ec1eb99="" class="flex flex-1 f-s-0">创建时间</div>
								<div data-v-6ec1eb99="" class="flex flex-1 f-s-0">状态</div>
								<div data-v-6ec1eb99="" class="flex flex-1 f-s-0">操作</div>
								<!-- <div data-v-6ec1eb99="" class="flex flex-1 f-s-0">评价1</div>
								<div data-v-6ec1eb99="" class="flex flex-1 f-s-0">晒图1</div>
								<div data-v-6ec1eb99="" class="flex flex-1 f-s-0">评价2</div>
								<div data-v-6ec1eb99="" class="flex flex-1 f-s-0">晒图2</div>
								<div data-v-6ec1eb99="" class="flex flex-1 f-s-0">评价3</div>	
								<div data-v-6ec1eb99="" class="flex flex-1 f-s-0">晒图3</div>
								<div data-v-6ec1eb99="" class="flex flex-1 f-s-0">评价4</div>
								<div data-v-6ec1eb99="" class="flex flex-1 f-s-0">晒图4</div>
								<div data-v-6ec1eb99="" class="flex flex-1 f-s-0">评价5</div>
								<div data-v-6ec1eb99="" class="flex flex-1 f-s-0">晒图5</div>
								<div data-v-6ec1eb99="" class="flex flex-1 f-s-0">评价6</div>
								<div data-v-6ec1eb99="" class="flex flex-1 f-s-0">晒图5</div> -->
								
							</div>
							<% if(data) data.forEach((item,index)=>{ %>
							<div data-v-6ec1eb99="" class="log-item flex t-color-4 f13-size ">
								<div data-v-6ec1eb99="" class="flex flex-1 f-s-0"><%= item.task_id%></div>
								<div data-v-6ec1eb99="" class="flex flex-1 f-s-0"><a data-v-6ec1eb99=""
										class="el-link el-link--default is-underline"><!----><span
											class="el-link--inner"><%= item.order_id%></span><!----></a></div>
								<div data-v-6ec1eb99="" class="flex flex-1 f-s-0"><%= item.buyer%></div>
								<div data-v-6ec1eb99="" class="flex flex-1 f-s-0"><%= formatDate(item.last_time)%></div>
								<div data-v-6ec1eb99="" class="flex flex-1 f-s-0">待评价</div>
								<div data-v-6ec1eb99="" class="flex flex-1 f-s-0"><a href=./del?type=comment&id=<%= item.id%> ><button data-v-339b71e6="" type="button"
									class="el-button el-button--danger el-button--small" ><!----><!----><span>删除</span></button></a></div>
							<!-- 	<%item.items.forEach((ite,index)=>{ %>
								<div data-v-6ec1eb99="" class="flex flex-1 f-s-0"><%= ite.text%></div>
								<div data-v-6ec1eb99="" class="flex flex-1 f-s-0"><a data-v-6ec1eb99=""
									class="el-link el-link--default is-underline" style="width: 18px;overflow-x: hidden;;"><span
										class="el-link--inner" ><%= JSON.stringify(ite.images)%></span></a></div>
								<%})%> -->
							</div>
							<%}) %>
						</div>
					</div> <!---->
					<div style="text-align: right; margin-top: 20px;">
			
					</div>
				</div>
			</div>
		</div>
	<%}%>
	<%if(type=='bill'){%>
		<div style="margin-left:20px; margin-top: 20px; text-align: left;  width: 1040px">
			<div data-v-339b71e6="" class="el-card is-always-shadow">
				<div class="el-card__body">
					<div data-v-339b71e6="" class="bg-color-w margin-t20">
						<div data-v-339b71e6="" class="log-item bg-color-c flex t-color-4 f13-size">
							<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 20%;">账号名称</div>
							<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 15%;">订单编号</div>
							<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 10%;">订单价格</div>
							<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 10%;">店铺名</div>
							<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 15%;">链接数量</div>
							<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 10%;">创建时间</div>
							<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 20%;">操作</div>
						</div>
						<% if(data) data.forEach((item,index)=>{ %>
						<div data-v-339b71e6="" class="log-item flex f-a-c t-color-4 f13-size">

							<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 20%;"><%= item.buyer%></div>
							<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 15%;"><%= item.order_id%></div>
							<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 10%;"><%= item.price%></div>
							<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 10%;"><%= item.shopName%> </div>
							<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 15%;"><%= item.number%></div>
							<div data-v-339b71e6="" class="flex f-j-c f-s-0" style="width: 10%;"><%= formatDate(item.creatTime)%></div>
							<div data-v-6ec1eb99="" class="flex f-j-c f-s-0 " style="width: 20%;">
								<a href=./del?type=billdelOne&id=<%= item._id%> >
									<button data-v-339b71e6="" type="button" class="el-button el-button--danger el-button--small" ><!----><!---->
										<span>删除</span>
									</button>
								</a>
							</div>
						
						</div>
						<% })%>	
					
					</div> <!---->
					<div style="text-align: right; margin-top: 20px;">
			
						&nbsp;&nbsp;&nbsp;&nbsp;总数 <%= total%>  条 &nbsp;&nbsp;当前第 <%= currentPage%> 页 &nbsp;&nbsp;共 <%= totalPage%> 页 &nbsp;&nbsp;<a href=./admin.php?type=bill&page=1 target="_self" class="a_button">第一页</a>
						&nbsp;&nbsp;<a href=./admin.php?type=bill&page=<%= currentPage-1%> target="_self" class="a_button">上一页</a>
						&nbsp;&nbsp;<a href=./admin.php?type=bill&page=<%= currentPage+1%> target="_self" class="a_button">下一页</a>
						&nbsp;&nbsp;<a href=./admin.php?type=bill&page=<%= totalPage%>  target="_self" class="a_button">最后页</a>
					</div>
				</div>
			</div>
		</div>
	<% }%>	
		 <!-- 弹窗结构 -->
		<div id="myModal" class="modal">
			<form id="commentForm" action="creatComment" method="post" >
				<div data-v-4ab4e72a="" class="el-dialog__wrapper" style="z-index: 2008;">
					<div role="dialog" aria-modal="true" aria-label="编辑任务" class="el-dialog" style="margin-top: 15vh;">
						<div class="el-dialog__header"><span class="el-dialog__title">编辑任务</span><button type="button"
								aria-label="Close" class="el-dialog__headerbtn"><span id="close">&times;</span></button>
						</div>
						
							<div class="el-dialog__header" style="margin-left: -300px;"><span class="el-dialog__title" >请按宝贝顺序依次提交评语以及晒图</span></div>
						<div class="el-dialog__body">
							<input type="hidden" id="task_id" name="task_id" value="">
							<div data-v-4ab4e72a="" class="log-item flex f-a-c t-color-4 f13-size">
								<div data-v-4ab4e72a="" class="label flex f-j-e f-a-c f-w-b margin-r12">买家淘宝号：</div>
								<div data-v-4ab4e72a="" class="el-input"><!----><input type="text" id="modal_buyer" name="buyer"
										autocomplete="off" placeholder="买家淘宝号"
										class="el-input__inner" ><!----><!----><!----><!----></div>
							</div>
							<div data-v-4ab4e72a="" class="log-item flex f-a-c t-color-4 f13-size">
								<div data-v-4ab4e72a="" class="label flex f-j-e f-a-c f-w-b margin-r12">订单号：</div>
								<div data-v-4ab4e72a="" class="el-input"><!----><input type="text" id="modal_order_id" name="order_id"
										autocomplete="off" placeholder="订单号"
										class="el-input__inner" ><!----><!----><!----><!----></div>
							</div>
							<div data-v-4ab4e72a="" class="log-item flex f-a-c t-color-4 f13-size">
								<div data-v-4ab4e72a="" class="label flex f-j-e f-a-c f-w-b margin-r12">宝贝1评语：</div>
								<div data-v-4ab4e72a="" class="el-input"><!----><input type="text" name="commentText"
										autocomplete="off" placeholder="文字评语"
										class="el-input__inner"><!----><!----><!----><!----></div>
							</div>
							<div data-v-4ab4e72a="" class="log-item flex f-a-c t-color-4 f13-size">
								<div data-v-4ab4e72a="" class="label flex f-j-e f-a-c f-w-b margin-r12">宝贝1图片：</div>
								<div data-v-2f694cb4="" data-v-4ab4e72a="" style="width: 100%;">
									<div data-v-2f694cb4="" data-we-id="wangEditor-1" style="text-align: left;">
										<div style="background-color:#FFF; border:1px solid #c9d8db; border-bottom:1px solid #EEE; z-index:2;"
											class="w-e-toolbar" id="toolbar-elem26332181359552176">
											<div class="w-e-menu" data-title="图片">
												<div id="up-trigger-id5245442149994433" class="w-e-up-btn">
													<i class="w-e-icon-image"></i>
												</div>
												<div style="display:none;">
													<input id="up-file-id8723296301410541" type="file" name="portrait"
														accept="image/jpg,image/jpeg,image/png,image/gif,image/bmp">
												</div>
											</div>
											<div class="w-e-menu-tooltip w-e-menu-tooltip-up"
												style="visibility:hidden;; z-index:2; left:48px; top:-36px">全屏</div>
											<div class="w-e-menu" data-title="全屏">
												<i class="w-e-icon-fullscreen"></i>
											</div>
										</div>
										<div style="border:1px solid #c9d8db; border-top:none; height:300px; z-index:1;"
											class="w-e-text-container">
											<div contenteditable="true" style="width:100%; height:100%; min-height:300px;"
												class="w-e-text" id="text-elem">
												<p data-we-empty-p=""><br></p>
											</div>
											<div class="placeholder" style="display:block;">请输入正文</div>
											<div class="w-e-img-drag-mask" style="display:none;">
												<div class="w-e-img-drag-show-size"></div>
												<div class="w-e-img-drag-rb"></div>
											</div>
										</div>
									</div>
								</div>
							</div>
							<div data-v-4ab4e72a="" role="tablist" aria-multiselectable="true" class="el-collapse">
								<div data-v-4ab4e72a="" class="el-collapse-item">
									<div role="tab" aria-controls="el-collapse-content-2888"
										aria-describedby="el-collapse-content-2888">
										<div role="button" id="el-collapse-head-2888" tabindex="0"
											class="el-collapse-item__header">
											<span data-v-4ab4e72a="" style="float: left; font-weight: bold;">添加宝贝2评价</span><i
												class="el-collapse-item__arrow el-icon-arrow-right"></i>
										</div>
									</div>
									<div role="tabpanel" aria-labelledby="el-collapse-head-2888" id="el-collapse-content-2888"
										class="el-collapse-item__wrap" style="display: none;" data-old-padding-top=""
										data-old-padding-bottom="" data-old-overflow="" aria-hidden="true">
										<div class="el-collapse-item__content">
											<div data-v-4ab4e72a="" class="log-item flex f-a-c t-color-4 f13-size">
												<div data-v-4ab4e72a="" class="label flex f-j-e f-a-c f-w-b margin-r12">宝贝2评语：
												</div>
												<div data-v-4ab4e72a="" class="el-input"><!----><input type="text"
														name="commentText1" autocomplete="off" placeholder="文字评语"
														class="el-input__inner"><!----><!----><!----><!----></div>
											</div>
											<div data-v-4ab4e72a="" class="log-item flex f-a-c t-color-4 f13-size">
												<div data-v-4ab4e72a="" class="label flex f-j-e f-a-c f-w-b margin-r12">宝贝2图片：
												</div>
												<div data-v-2f694cb4="" data-v-4ab4e72a="" style="width: 100%;">
													<div data-v-2f694cb4="" data-we-id="wangEditor-2" style="text-align: left;">
														<div style="background-color:#FFF; border:1px solid #c9d8db; border-bottom:1px solid #EEE; z-index:2;"
															class="w-e-toolbar" id="toolbar-elem9841757974956751">
															<div class="w-e-menu" data-title="图片">
																<div id="up-trigger-id5791965412393845" class="w-e-up-btn">
																	<i class="w-e-icon-image"></i>
																</div>
																<div style="display:none;">
																	<input id="up-file-id6182937440182008" type="file"
																		name="portrait1"
																		accept="image/jpg,image/jpeg,image/png,image/gif,image/bmp">
																</div>
															</div>
															<div class="w-e-menu-tooltip w-e-menu-tooltip-up"
																style="visibility:hidden;; z-index:2">
																<div class="w-e-menu-tooltip-item-wrapper">
																	<div></div>
																</div>
															</div>
															<div class="w-e-menu" data-title="全屏">
																<i class="w-e-icon-fullscreen"></i>
															</div>
														</div>
														<div style="border:1px solid #c9d8db; border-top:none; height:300px; z-index:1;"
															class="w-e-text-container">
															<div contenteditable="true" style="width:100%; height:100%;"
																class="w-e-text" id="text-elem">
																<p data-we-empty-p=""><br></p>
															</div>
															<div class="placeholder" style="display:block;">请输入正文</div>
															<div class="w-e-img-drag-mask" style="display:none;">
																<div class="w-e-img-drag-show-size"></div>
																<div class="w-e-img-drag-rb"></div>
															</div>
														</div>
													</div>
												</div>
											</div>
										</div>
									</div>
								</div>
								<div data-v-4ab4e72a="" class="el-collapse-item">
									<div role="tab" aria-controls="el-collapse-content-1385"
										aria-describedby="el-collapse-content-1385">
										<div role="button" id="el-collapse-head-1385" tabindex="0"
											class="el-collapse-item__header"><span data-v-4ab4e72a=""
												style="float: left; font-weight: bold;">添加宝贝3评价</span><i
												class="el-collapse-item__arrow el-icon-arrow-right"></i></div>
									</div>
									<div role="tabpanel" aria-hidden="true" aria-labelledby="el-collapse-head-1385"
										id="el-collapse-content-1385" class="el-collapse-item__wrap" style="display: none;">
										<div class="el-collapse-item__content">
											<div data-v-4ab4e72a="" class="log-item flex f-a-c t-color-4 f13-size">
												<div data-v-4ab4e72a="" class="label flex f-j-e f-a-c f-w-b margin-r12">宝贝3评语：
												</div>
												<div data-v-4ab4e72a="" class="el-input"><!----><input type="text"
														name="commentText2" autocomplete="off" placeholder="文字评语"
														class="el-input__inner"><!----><!----><!----><!----></div>
											</div>
											<div data-v-4ab4e72a="" class="log-item flex f-a-c t-color-4 f13-size">
												<div data-v-4ab4e72a="" class="label flex f-j-e f-a-c f-w-b margin-r12">宝贝3图片：
												</div>
												<div data-v-2f694cb4="" data-v-4ab4e72a="" style="width: 100%;">
													<div data-v-2f694cb4="" data-we-id="wangEditor-3" style="text-align: left;">
														<div style="background-color:#FFF; border:1px solid #c9d8db; border-bottom:1px solid #EEE; z-index:2;"
															class="w-e-toolbar" id="toolbar-elem9292301891234429">
															<div class="w-e-menu" data-title="图片">
																<div id="up-trigger-id4976642250344381" class="w-e-up-btn">
																	<i class="w-e-icon-image"></i>
																</div>
																<div style="display:none;">
																	<input id="up-file-id749951278518437" type="file"
																		name="portrait2"
																		accept="image/jpg,image/jpeg,image/png,image/gif,image/bmp">
																</div>
															</div>
															<div class="w-e-menu-tooltip w-e-menu-tooltip-up"
																style="visibility:hidden; z-index:2;">
																<div class="w-e-menu-tooltip-item-wrapper">
																	<div></div>
																</div>
															</div>
															<div class="w-e-menu" data-title="全屏">
																<i class="w-e-icon-fullscreen"></i>
															</div>
														</div>
														<div style="border:1px solid #c9d8db; border-top:none; height:300px; z-index:1;"
															class="w-e-text-container">
															<div contenteditable="true" style="width:100%; height:100%;"
																class="w-e-text" id="text-elem">
																<p data-we-empty-p=""><br></p>
															</div>
															<div class="placeholder" style="display:block;">请输入正文</div>
															<div class="w-e-img-drag-mask" style="display:none;">
																<div class="w-e-img-drag-show-size"></div>
																<div class="w-e-img-drag-rb"></div>
															</div>
														</div>
													</div>
												</div>
											</div>
										</div>
									</div>
								</div>
								<div data-v-4ab4e72a="" class="el-collapse-item">
									<div role="tab" aria-controls="el-collapse-content-1629"
										aria-describedby="el-collapse-content-1629">
										<div role="button" id="el-collapse-head-1629" tabindex="0"
											class="el-collapse-item__header"><span data-v-4ab4e72a=""
												style="float: left; font-weight: bold;">添加宝贝4评价</span><i
												class="el-collapse-item__arrow el-icon-arrow-right"></i></div>
									</div>
									<div role="tabpanel" aria-hidden="true" aria-labelledby="el-collapse-head-1629"
										id="el-collapse-content-1629" class="el-collapse-item__wrap" style="display: none;">
										<div class="el-collapse-item__content">
											<div data-v-4ab4e72a="" class="log-item flex f-a-c t-color-4 f13-size">
												<div data-v-4ab4e72a="" class="label flex f-j-e f-a-c f-w-b margin-r12">宝贝4评语：
												</div>
												<div data-v-4ab4e72a="" class="el-input"><!----><input type="text"
														name="commentText3" autocomplete="off" placeholder="文字评语"
														class="el-input__inner"><!----><!----><!----><!----></div>
											</div>
											<div data-v-4ab4e72a="" class="log-item flex f-a-c t-color-4 f13-size">
												<div data-v-4ab4e72a="" class="label flex f-j-e f-a-c f-w-b margin-r12">宝贝4图片：
												</div>
												<div data-v-2f694cb4="" data-v-4ab4e72a="" style="width: 100%;">
													<div data-v-2f694cb4="" data-we-id="wangEditor-4" style="text-align: left;">
														<div style="background-color:#FFF; border:1px solid #c9d8db; border-bottom:1px solid #EEE; z-index:2;"
															class="w-e-toolbar" id="toolbar-elem8525680576130716">
															<div class="w-e-menu" data-title="图片">
																<div id="up-trigger-id9338331257174894" class="w-e-up-btn">
																	<i class="w-e-icon-image"></i>
																</div>
																<div style="display:none;">
																	<input id="up-file-id7953548537006472" type="file"
																		name="portrait3"
																		accept="image/jpg,image/jpeg,image/png,image/gif,image/bmp">
																</div>
															</div>
															<div class="w-e-menu-tooltip w-e-menu-tooltip-up"
																style="visibility:hidden; z-index:2;">
																<div class="w-e-menu-tooltip-item-wrapper">
																	<div></div>
																</div>
															</div>
															<div class="w-e-menu" data-title="全屏">
																<i class="w-e-icon-fullscreen"></i>
															</div>
														</div>
														<div style="border:1px solid #c9d8db; border-top:none; height:300px; z-index:1;"
															class="w-e-text-container">
															<div contenteditable="true" style="width:100%; height:100%;"
																class="w-e-text" id="text-elem">
																<p data-we-empty-p=""><br></p>
															</div>
															<div class="placeholder" style="display:block;">请输入正文</div>
															<div class="w-e-img-drag-mask" style="display:none;">
																<div class="w-e-img-drag-show-size"></div>
																<div class="w-e-img-drag-rb"></div>
															</div>
														</div>
													</div>
												</div>
											</div>
										</div>
									</div>
								</div>
								<div data-v-4ab4e72a="" class="el-collapse-item">
									<div role="tab" aria-controls="el-collapse-content-704"
										aria-describedby="el-collapse-content-704">
										<div role="button" id="el-collapse-head-704" tabindex="0"
											class="el-collapse-item__header"><span data-v-4ab4e72a=""
												style="float: left; font-weight: bold;">添加宝贝5评价</span><i
												class="el-collapse-item__arrow el-icon-arrow-right"></i></div>
									</div>
									<div role="tabpanel" aria-hidden="true" aria-labelledby="el-collapse-head-704"
										id="el-collapse-content-704" class="el-collapse-item__wrap" style="display: none;">
										<div class="el-collapse-item__content">
											<div data-v-4ab4e72a="" class="log-item flex f-a-c t-color-4 f13-size">
												<div data-v-4ab4e72a="" class="label flex f-j-e f-a-c f-w-b margin-r12">宝贝5评语：
												</div>
												<div data-v-4ab4e72a="" class="el-input"><!----><input type="text"
														autocomplete="off" name="commentText4" placeholder="文字评语"
														class="el-input__inner"><!----><!----><!----><!----></div>
											</div>
											<div data-v-4ab4e72a="" class="log-item flex f-a-c t-color-4 f13-size">
												<div data-v-4ab4e72a="" class="label flex f-j-e f-a-c f-w-b margin-r12">宝贝5图片：
												</div>
												<div data-v-2f694cb4="" data-v-4ab4e72a="" style="width: 100%;">
													<div data-v-2f694cb4="" data-we-id="wangEditor-5" style="text-align: left;">
														<div style="background-color:#FFF; border:1px solid #c9d8db; border-bottom:1px solid #EEE; z-index:2;"
															class="w-e-toolbar" id="toolbar-elem6717979428931629">
															<div class="w-e-menu" data-title="图片">
																<div id="up-trigger-id5314650929230225" class="w-e-up-btn">
																	<i class="w-e-icon-image"></i>
																</div>
																<div style="display:none;">
																	<input id="up-file-id6404885484464093" type="file"
																		name="portrait4"
																		accept="image/jpg,image/jpeg,image/png,image/gif,image/bmp">
																</div>
															</div>
															<div class="w-e-menu-tooltip w-e-menu-tooltip-up"
																style="visibility:hidden; z-index:2;">
																<div class="w-e-menu-tooltip-item-wrapper">
																	<div></div>
																</div>
															</div>
															<div class="w-e-menu" data-title="全屏">
																<i class="w-e-icon-fullscreen"></i>
															</div>
														</div>
														<div style="border:1px solid #c9d8db; border-top:none; height:300px; z-index:1;"
															class="w-e-text-container">
															<div contenteditable="true" style="width:100%; height:100%;"
																class="w-e-text" id="text-elem">
																<p data-we-empty-p=""><br></p>
															</div>
															<div class="placeholder" style="display:block;">请输入正文</div>
															<div class="w-e-img-drag-mask" style="display:none;">
																<div class="w-e-img-drag-show-size"></div>
																<div class="w-e-img-drag-rb"></div>
															</div>
														</div>
													</div>
												</div>
											</div>
										</div>
									</div>
								</div>
								<div data-v-4ab4e72a="" class="el-collapse-item">
									<div role="tab" aria-controls="el-collapse-content-704"
										aria-describedby="el-collapse-content-704">
										<div role="button" id="el-collapse-head-704" tabindex="0"
											class="el-collapse-item__header"><span data-v-4ab4e72a=""
												style="float: left; font-weight: bold;">添加宝贝6评价</span><i
												class="el-collapse-item__arrow el-icon-arrow-right"></i></div>
									</div>
									<div role="tabpanel" aria-hidden="true" aria-labelledby="el-collapse-head-704"
										id="el-collapse-content-704" class="el-collapse-item__wrap" style="display: none;">
										<div class="el-collapse-item__content">
											<div data-v-4ab4e72a="" class="log-item flex f-a-c t-color-4 f13-size">
												<div data-v-4ab4e72a="" class="label flex f-j-e f-a-c f-w-b margin-r12">宝贝6评语：
												</div>
												<div data-v-4ab4e72a="" class="el-input"><!----><input type="text"
														name="commentText5" autocomplete="off" placeholder="文字评语"
														class="el-input__inner"><!----><!----><!----><!----></div>
											</div>
											<div data-v-4ab4e72a="" class="log-item flex f-a-c t-color-4 f13-size">
												<div data-v-4ab4e72a="" class="label flex f-j-e f-a-c f-w-b margin-r12">宝贝6图片：
												</div>
												<div data-v-2f694cb4="" data-v-4ab4e72a="" style="width: 100%;">
													<div data-v-2f694cb4="" data-we-id="wangEditor-5" style="text-align: left;">
														<div style="background-color:#FFF; border:1px solid #c9d8db; border-bottom:1px solid #EEE; z-index:2;"
															class="w-e-toolbar" id="toolbar-elem6717979428931629">
															<div class="w-e-menu" data-title="图片">
																<div id="up-trigger-id5314650929230225" class="w-e-up-btn">
																	<i class="w-e-icon-image"></i>
																</div>
																<div style="display:none;">
																	<input id="up-file-id6404885484464093" type="file"
																		name="portrait5"
																		accept="image/jpg,image/jpeg,image/png,image/gif,image/bmp">
																</div>
															</div>
															<div class="w-e-menu-tooltip w-e-menu-tooltip-up"
																style="visibility:hidden; z-index:2;">
																<div class="w-e-menu-tooltip-item-wrapper">
																	<div></div>
																</div>
															</div>
															<div class="w-e-menu" data-title="全屏">
																<i class="w-e-icon-fullscreen"></i>
															</div>
														</div>
														<div style="border:1px solid #c9d8db; border-top:none; height:300px; z-index:1;"
															class="w-e-text-container">
															<div contenteditable="true" style="width:100%; height:100%;"
																class="w-e-text" id="text-elem">
																<p data-we-empty-p=""><br></p>
															</div>
															<div class="placeholder" style="display:block;">请输入正文</div>
															<div class="w-e-img-drag-mask" style="display:none;">
																<div class="w-e-img-drag-show-size"></div>
																<div class="w-e-img-drag-rb"></div>
															</div>
														</div>
													</div>
												</div>
											</div>
										</div>
									</div>
								</div>
							</div>
		
		
						</div>
						<div class="el-dialog__footer">
							<input type="hidden" name="img1" value="[]" id="imgPaths">
        					<input type="hidden" name="img2" value="[]" id="imgPaths">
							<input type="hidden" name="img3" value="[]" id="imgPaths">
							<input type="hidden" name="img4" value="[]" id="imgPaths">
							<input type="hidden" name="img5" value="[]" id="imgPaths">
							<input type="hidden" name="img6" value="[]" id="imgPaths">
							<div data-v-4ab4e72a="" class="dialog-footer"><button data-v-4ab4e72a="" type="submit"
									class="el-button el-button--primary"><!----><!----><span>确定</span></button> <button
									data-v-4ab4e72a="" id="closebtn" type="button"
									class="el-button el-button--primary "><!----><!----><span>关闭</span></button></div>
						</div>
					</div>
				</div>
			</form>
		</div>
</body>
<script>
    function submitForm(action) {
      const form = document.getElementById('timeRangeForm');
      form.action = action;
    }
</script>
<script>
    // 获取弹窗
    var modal = document.getElementById("myModal");

    // 获取 <span> 元素，用于关闭弹窗
    var spanClose = document.getElementById("close")
	var closebtn = document.getElementById("closebtn")
    

    // 当用户点击 <span> (x)，关闭弹窗
	spanClose.onclick = function() {
      modal.style.display = "none";
    }
	closebtn.onclick = function() {
      modal.style.display = "none";
    }

    // 当用户点击弹窗外部，关闭弹窗
    window.onclick = function(event) {
      if (event.target == modal) {
        modal.style.display = "none";
      }
    }

    
	
  </script>
  <script>
    //等待页面渲染完成后再添加事件
	document.addEventListener('DOMContentLoaded', function() {
		var openBtn = document.querySelectorAll("#openModal");
		var uploadBtns = document.querySelectorAll('.w-e-up-btn');
		var fileInputs = document.querySelectorAll('input[type="file"]');
		var textElem = document.querySelectorAll('#text-elem');
        var headers = document.querySelectorAll('.el-collapse-item__header');
        var contents = document.querySelectorAll('.el-collapse-item__wrap');
		var imgPaths =document.querySelectorAll	('#imgPaths')
		const maxSize = 1.5 * 1024 * 1024;
		const minSize = 1 * 1024;
		openBtn.forEach(function(btn, index) {
			btn.addEventListener('click', function() {
				modal.style.display = "block";
				// document.getElementById("task_id").value=document.querySelectorAll("#data-id")[index].getAttribute("value")
				// document.getElementById("modal_buyer").value=document.querySelectorAll("#buyer")[index].getAttribute("value")
				// document.getElementById("modal_order_id").value=document.querySelectorAll("#order_id")[index].getAttribute("value")

			});
    	});
		document.getElementById('commentForm').addEventListener('submit', function(event) {
			
			textElem.forEach(function(textChild, index) {
				var imglist = [];
				var imgTags = textChild.getElementsByTagName('img');
				for (let i = 0; i < imgTags.length; i++) {
					imglist.push({url:imgTags[i].src});
            	}
				imgPaths[index].value = JSON.stringify(imglist);
			})

        });
		//监听标签点击事件修改其显示隐藏属性
        headers.forEach(function(header, index) {
            header.addEventListener('click', function() {
                var content = contents[index];
                if (content.style.display === 'none' || content.style.display === '') {
                    content.style.display = 'block';
                } else {
                    content.style.display = 'none';
                }
            });
        });
		//监听点击事件 执行文件点击
		uploadBtns.forEach(function(btn, index) {
			btn.addEventListener('click', function() {
				fileInputs[index].click();
			});
    	});

		if(window.location.href.indexOf("staff")>-1){
		
			//监听点击事件 添加图片控件
			fileInputs.forEach(function(input,index) {
				input.addEventListener('change', function() {
					var files = input.files;
					var formData = new FormData();
					var id = input.id
					formData.append("id",id);
					for (var i = 0; i < files.length; i++) {
						formData.append('data', files[i]);
					}

					// Replace the URL with your actual upload URL
					var uploadUrl = window.location.origin+'/uploadstaffDevice';
					console.log(window.location.origin+'/uploadstaffDevice')
					fetch(uploadUrl, {
						method: 'POST',
						enctype:"multipart/form-data",
						body: formData
					})
					.then(response => response.json())
					.then(data => {
						// Assuming the response contains the URLs of the uploaded images
						if(data){
							if(data.code == 1){
								alert(data.msg)
							}else if(data.code == 0){
								alert(data.msg)
							}

						}
					})
					.catch(error => {
						alert("上传设备失败,请重新再试!")
						console.error('Error uploading files:', error);
					});
					input.value =""
				});
			});
        
		}
        if(window.location.href.indexOf("comment")>-1){
			//监听点击事件 添加图片控件
			fileInputs.forEach(function(input,index) {
				input.addEventListener('change', function() {
					var files = input.files;
					var formData = new FormData();

					for (var i = 0; i < files.length; i++) {
						if (files[i].size < minSize) {
							alert('请上传大小不小于1KB的图片文件');
							return;
						}
						if (files[i].size > maxSize) {
						alert('请上传不超过大小不超过1.5MB的图片文件');
						return;
						}
						formData.append('data', files[i]);
					}

					// Replace the URL with your actual upload URL
					var uploadUrl = window.location.origin+'/portrait';
					console.log(window.location.origin+'/portrait')
					fetch(uploadUrl, {
						method: 'POST',
						enctype:"multipart/form-data",
						body: formData
					})
					.then(response => response.json())
					.then(data => {
						// Assuming the response contains the URLs of the uploaded images
						data.imagePath.forEach(url => {
							var imgElement = document.createElement('img');
							imgElement.name = "img"
							imgElement.src = url;
							imgElement.contentEditable = false;
							imgElement.style.maxWidth = '100px'; // 限制图片的最大宽度
							imgElement.style.margin = '5px'; // 添加一些边距
							textElem[index].appendChild(imgElement);
						});
					})
					.catch(error => {
						alert("提交图片失败,请重新再试!")
						console.error('Error uploading files:', error);
					});
				});
			});
        
		}
		
    });
</script>
</html>


<% function formatDate(date) { %>
	<% if (!date) return ""; %>
	<% var year = date.getFullYear(); %>
	<% var month = ("0" + (date.getMonth() + 1)).slice(-2); %>
	<% var day = ("0" + date.getDate()).slice(-2); %>
	<% var hours = ("0" + date.getHours()).slice(-2); %>
	<% var minutes = ("0" + date.getMinutes()).slice(-2); %>
	<% var seconds = ("0" + date.getSeconds()).slice(-2); %>

	<% return year + "-" + month + "-" + day + " " + hours + ":" + minutes + ":" + seconds; %>
<% } %>

<% function getStatus(index) { %>
	<% if (index == -1) { %>
	<%   return "待处理"; %>
	<% } else if (index == 0) { %>
	<%   return "已分配"; %>
	<% } else if (index == 1) { %>
	<%   return "执行中"; %>
	<% } else if (index == 2) { %>
	<%   return "完成"; %>
	<% } else if (index == 3) { %>
	<%   return "失败"; %>
	<% } else { %>
	<%   return ""; %>
	<% } %>
<% } %>
<% function getshopStatus(index) { %>
	<% if (index == -1) { %>
	<%   return "待审核"; %>
	<% } else if (index == 0) { %>
	<%   return "待审核"; %>
	<% } else if (index == 1) { %>
	<%   return "已认证"; %>
	<% } else if (index == 2) { %>
	<%   return "不通过"; %>
	<% } else if (index == 3) { %>
	<%   return "禁止"; %>
	<% } else { %>
	<%   return "待审核"; %>
	<% } %>
<% } %>